package com.neuronbit.businessflow.intellij.lang;

import com.intellij.navigation.ItemPresentation;
import com.intellij.openapi.util.NlsSafe;
import com.intellij.psi.PsiFile;
import org.jetbrains.annotations.Nullable;

import javax.swing.*;

/**
 * The type Bpm root presentation.
 */
public class BpmRootPresentation implements ItemPresentation {
    private final PsiFile element;

    /**
     * Instantiates a new Bpm root presentation.
     *
     * @param element the element
     */
    public BpmRootPresentation(PsiFile element) {
        this.element = element;
    }

    @Override
    public @NlsSafe @Nullable String getLocationString() {
        //TODO shunyun 2024/2/20: location string of root element
        return ItemPresentation.super.getLocationString();
    }

    @Override
    public @NlsSafe @Nullable String getPresentableText() {
        return element.getVirtualFile().getNameWithoutExtension();
    }

    @Override
    public @Nullable Icon getIcon(boolean b) {
        //TODO shunyun 2024/2/20: root icon
        return null;
    }
}
